package RLK_MAIL;

public class Example {
    public void printQuotas(Session s, URLName name) {
        try {
            IMAPStore store = new IMAPStore(s, name); // Store created
            final Quota[] quotas = store.getQuota("key");
            for (int i = 0; i < quotas.length; i++) {
                final Quota quota = quotas[i];
                System.out.println("quota: " + quota);
            }
        } catch (MessagingException e) {
            System.err.println("Was not able to get quota: " + e.getMessage());
        }
    }
}
